home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 11 / 011.d81 / dos #28 < prev    next >
Text File  |  2022-08-26  |  5KB  |  240 lines

  1.  
  2.      DOS and Don'ts -- Part 28
  3.  
  4.   This month we will discuss the
  5.  
  6. commands which make up the DOS Wedge.
  7.  
  8. We all know how useful the wedge's
  9.  
  10. shortcuts are, so here is a list of
  11.  
  12. the most useful commands with a brief
  13.  
  14. explanation of each.  The equivalent
  15.  
  16. statement without the wedge is also
  17.  
  18. given.  The Dos Wedge can be found
  19.  
  20. on your VIC-1541 TEST/DEMO disk.
  21.  
  22. It was written by Bob Fairbairn.
  23.  
  24. Thanks, Bob!
  25.  
  26.   Let's start with installing the
  27.  
  28. Wedge, itself.  To get it operational,
  29.  
  30. put your TEST/DEMO disk in your 1541
  31.  
  32. and type
  33.         LOAD "DOS 5.1",8,1
  34.                NEW
  35.             SYS 52224
  36.  
  37. After that, all Wedge commands are
  38.  
  39. operational.
  40.  
  41.   To begin with, wherever the '@' sign
  42.  
  43. is used, the '>' symbol can be used.
  44.  
  45. - - - - - - - - - - - - - - - - - - -
  46.  
  47. Wedge command:  @
  48.  
  49. BASIC equivalent:
  50. 10 OPEN15,8,15
  51. 20 INPUT#15,ER,ER$,TR,SE
  52. 30 CLOSE15
  53. 40 PRINT ER","ER$","TR","SE
  54.  
  55.      When the red light blinks on your
  56.      1541 disk, you had an error.  Use
  57.      @ to check the error status.
  58.      Without the wedge, you would need
  59.      a small program like this to
  60.      read error status.
  61.  
  62. - - - - - - - - - - - - - - - - - - -
  63.  
  64. Wedge command:  @$ or @$A*
  65.  
  66. BASIC equivalents:
  67. LOAD"$",8
  68. LIST
  69.  or
  70. LOAD"$A*",8 <wildcard>
  71. LIST
  72.  
  73.      View the directory to see what
  74.      files are on a disk.  With this
  75.      command, you can use pattern
  76.      matching and wildcards.  You can
  77.      pause this directory by pressing
  78.      <space> and interrupt by pressing
  79.      RUN/STOP.
  80.  
  81. - - - - - - - - - - - - - - - - - - -
  82.  
  83. Wedge command:  @N0:NAME,ID
  84.  
  85. BASIC equivalent:
  86. OPEN15,8,15,"N0:NAME,ID":CLOSE15
  87.  
  88.      Format a disk using the name and
  89.      id which is given.  Be sure that
  90.      you do not want any information
  91.      which is on the disk.  Formatting
  92.      destroys all previous data.  You
  93.      need to format a new disk before
  94.      you can store files on it.  Try
  95.      to use a different ID for each
  96.      disk you format.
  97.  
  98. - - - - - - - - - - - - - - - - - - -
  99.  
  100. Wedge command:  @S0:NAME
  101.  
  102. BASIC equivalent:
  103. OPEN15,8,15,"S0:NAME":CLOSE15
  104.  
  105.      Scratch a file from the disk.
  106.      Be sure that you no longer want
  107.      this file.  Scratched files are
  108.      removed from the directory.
  109.  
  110. - - - - - - - - - - - - - - - - - - -
  111.  
  112. Wedge command:  @R0:NEW=OLD
  113.  
  114. BASIC equivalent:
  115. OPEN15,8,15,"R0:NEW=OLD":CLOSE15
  116.  
  117.      Rename the file called 'OLD'. The
  118.      name of 'OLD' will become 'NEW'.
  119.  
  120. - - - - - - - - - - - - - - - - - - -
  121.  
  122. Wedge command:  @V0
  123.  
  124. BASIC equivalent:
  125. OPEN15,8,15,"V0":CLOSE15
  126.  
  127.      Validate the disk in drive 0.
  128.      Validation removes all files
  129.      that appear with a "*" in the
  130.      directory.
  131.  
  132. - - - - - - - - - - - - - - - - - - -
  133.  
  134. Wedge command:  @D0=1
  135.  
  136. BASIC equivalent:
  137. OPEN15,8,15"D0=1":CLOSE15
  138.  
  139.      If you have dual disk drives, the
  140.      disk in drive 1 will be totally
  141.      copied onto the disk in drive 0.
  142.      Be sure that it is OK to destroy
  143.      all previous data on the disk in
  144.      drive 0.  @D1=0 would copy drive
  145.      0 to drive 1.
  146.  
  147. - - - - - - - - - - - - - - - - - - -
  148.  
  149. Wedge command:  @I0
  150.  
  151. BASIC equivalent:
  152. OPEN15,8,15,"I0":CLOSE15
  153.  
  154.      Initialize drive 0.  It is a good
  155.      idea to initialize every time you
  156.      put another disk in your 1541.
  157.  
  158. - - - - - - - - - - - - - - - - - - -
  159.  
  160. Wedge command:  @C0:NAME1=0:NAME2
  161.  
  162. BASIC equivalent:
  163. OPEN15,8,15,"C0:NAME1=0:NAME2":CLOSE15
  164.  
  165.      Copy NAME2 to NAME1.  NAME2 is
  166.      not changed.  If dual drives are
  167.      present, the syntax can be:
  168.      @C0:NAME1=1:NAME2.  This will
  169.      copy the file NAME2 on drive 1 to
  170.      NAME1 on drive 0.
  171.  
  172. - - - - - - - - - - - - - - - - - - -
  173.  
  174. Wedge command:  @#9
  175. No BASIC equivalent.
  176.  
  177.      Any wedge commands which follow
  178.      will access unit 9.  Any valid
  179.      unit number may be assigned.
  180.      This is useful if you have two
  181.      1541 disk drives.
  182.  
  183. - - - - - - - - - - - - - - - - - - -
  184.  
  185. Wedge command:  @Q
  186. No BASIC eqivalent.
  187.  
  188.      Exits the DOS wedge
  189.      You can restart it with SYS52224.
  190.  
  191. = = = = = = = = = = = = = = = = = = =
  192.  
  193.   Now for the LOADING and SAVING of
  194. files:
  195.  
  196. - - - - - - - - - - - - - - - - - - -
  197.  
  198.  The '^' is used to LOAD and RUN a
  199. program which loads into the normal
  200. BASIC area.
  201.  
  202. Wedge command:  ^NAME
  203.  
  204. BASIC equivalent:
  205.   LOAD"NAME",8:<shift run/stop>
  206.  
  207. - - - - - - - - - - - - - - - - - - -
  208.  
  209.   The '/' is used to merely LOAD a
  210. program, but not run it.
  211.  
  212. Wedge command:  /NAME
  213.  
  214. BASIC equivalent:
  215.   LOAD"NAME",8
  216.  
  217. - - - - - - - - - - - - - - - - - - -
  218.  
  219.   The '%' is used to LOAD a file
  220. starting at its original load address.
  221. (Used for binary, machine language,
  222. sprites, etc.)
  223.  
  224. Wedge command:  %NAME
  225.  
  226. BASIC equivalent:
  227.   LOAD"NAME",8,1
  228.  
  229. - - - - - - - - - - - - - - - - - - -
  230.  
  231.   The '_' is used to SAVE a BASIC file
  232. to disk.
  233.  
  234. Wedge command:  _NAME
  235.  
  236. BASIC equivalent:
  237.   SAVE"NAME",8
  238.  
  239. ----------- end of article -----------
  240.